package com.haiyou.dc.jdk;

import com.google.common.base.Function;

/**
 * 测试jdk1.8特性
 */
public class Test特性 {

    public static void main(String[] args) {
        MyInterface myInterface = new TestMyInterface();


        myInterface.getInfo();
    }

    interface MyInterface {
        int getUser();

        default void getInfo() {
            System.out.printf("--------------->");
        }
    }

    static class TestMyInterface implements MyInterface {

        @Override
        public int getUser() {
            return 0;
        }
    }
}

